package com.slfx.data.permission.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: slfx
 * @Date: 2023-01-02
 * @Description:
 **/
@Data
@TableName("user_data_auth")
@ApiModel(value = "UserDataAuth对象", description = "用户数据权限表")
public class UserDataAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态,0可用,1不可用")
    private Integer deleteFlag;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人员")
    private String createUserCode;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("修改人员")
    private String updateUserCode;

    @ApiModelProperty("数据版本")
    private Integer version;

    @ApiModelProperty("权限编码")
    private String authCode;

    @ApiModelProperty("用户编码")
    private String userCode;

    @ApiModelProperty("权限名称")
    private String authName;

    @ApiModelProperty("数据编码")
    private String dataCode;

    @ApiModelProperty("租户编码")
    private String tenantCode;

    @ApiModelProperty("过期时间")
    private Date expireDate;

    @ApiModelProperty("来源,1手动授权,2自动授权,3iflow授权")
    private Integer source;


}
